﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="ArrangeBooking.aspx.cs" Inherits="BookingManage_ArrangeBooking" Title="分配Booking" culture="auto" meta:resourcekey="PageResource3" uiculture="auto" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            
            <div class="title">
                <asp:Label ID="lblPageType" runat="server" Text="分配Booking" 
                    meta:resourcekey="lblPageTypeResource1"></asp:Label></div>
            <table class="add_table tblGridView" cellspacing="1" cellpadding="3" style="width: 100%"
                align="center">
                <tr>
                    <td align="right" width="15%">
                        <asp:Label ID="llblBookingNo" runat="server" Text="预约号：" 
                            meta:resourcekey="llblBookingNoResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lblBookingNO" runat="server" 
                            meta:resourcekey="lblBookingNOResource1"></asp:Label>
                    </td>
                    <td align="right" width="15%">
                       <asp:Label ID="llblStatus" runat="server" Text=" 状态：" 
                            meta:resourcekey="llblStatusResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lblStatus" runat="server" meta:resourcekey="lblStatusResource2"></asp:Label>
                    </td>
                    <td align="right" width="15%">
                        <asp:Label ID="llblVendor" runat="server" Text="工厂：" 
                            meta:resourcekey="llblVendorResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lblVendor" runat="server" meta:resourcekey="lblVendorResource2"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="15%">
                       <asp:Label ID="llblBookingUser" runat="server" Text=" 落单人：" 
                            meta:resourcekey="llblBookingUserResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lblBookingUser" runat="server" 
                            meta:resourcekey="lblBookingUserResource2"></asp:Label>
                    </td>
                    <td align="right" width="15%">
                       <asp:Label ID="llblBookingDate" runat="server" Text=" 落单日期：" 
                            meta:resourcekey="llblBookingDateResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lblBookingDate" runat="server" 
                            meta:resourcekey="lblBookingDateResource2"></asp:Label>
                    </td>
                    <td align="right" width="15%">
                       <asp:Label ID="llblArrangeUser" runat="server" Text=" 分配人：" 
                            meta:resourcekey="llblArrangeUserResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lblArrangeUser" runat="server" 
                            meta:resourcekey="lblArrangeUserResource2"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="15%">
                         <asp:Label ID="llblArrangeDate" runat="server" Text="分配时间：" 
                             meta:resourcekey="llblArrangeDateResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lblArrangeDate" runat="server" 
                            meta:resourcekey="lblArrangeDateResource2"></asp:Label>
                    </td>
                    <td align="right" width="15%">
                         <asp:Label ID="llblCAUser" runat="server" Text="取消分配人：" 
                             meta:resourcekey="llblCAUserResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lblCAUser" runat="server" meta:resourcekey="lblCAUserResource2"></asp:Label>
                    </td>
                    <td align="right" width="15%">
                         <asp:Label ID="llblCADate" runat="server" Text=" 取消分配时间：" 
                             meta:resourcekey="llblCADateResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lblCADate" runat="server" meta:resourcekey="lblCADateResource2"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="15%">
                         <asp:Label ID="llblCancelUser" runat="server" Text="取消人：" 
                             meta:resourcekey="llblCancelUserResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lblCancelUser" runat="server" 
                            meta:resourcekey="lblCancelUserResource2"></asp:Label>
                    </td>
                    <td align="right" width="15%">
                        <asp:Label ID="llblCancelDate" runat="server" Text="取消时间：" 
                            meta:resourcekey="llblCancelDateResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lblCancelDate" runat="server" 
                            meta:resourcekey="lblCancelDateResource2"></asp:Label>
                    </td>
                    <td align="right" width="15%">
                         <asp:Label ID="llblRemark" runat="server" Text=备注：" 
                             meta:resourcekey="llblRemarkResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lblRemark" runat="server" meta:resourcekey="lblRemarkResource2"></asp:Label>
                    </td>
                </tr>
            </table>
            <div class="list_title">
                <div class="autoleft">
                   <asp:Label ID="lblBookingDetail" runat="server" Text="Booking明细：" 
                        meta:resourcekey="lblBookingDetailResource1"></asp:Label></div>
            </div>
            <div style="overflow: auto; width: 100%; height: 400px; padding: 1px;">
                <asp:GridView ID="gvBookingList" runat="server" AutoGenerateColumns="False"
                    Width="100%" CssClass="tblGridView" OnRowDataBound="gvBookingList_RowDataBound"
                    meta:resourcekey="gvBookingListResource1">
                    <Columns>
                         <asp:TemplateField HeaderText="序号" meta:resourcekey="TemplateFieldResource1">
                            <ItemTemplate>
                                <asp:Label ID="lblNo" runat="server" Text='<%# (Container as GridViewRow).RowIndex + 1 %>'
                                    meta:resourcekey="lblNoResource2"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="运输队" meta:resourcekey="TemplateFieldResource6">
                            <ItemTemplate>
                                <asp:HiddenField ID="hidPKID" runat="server" Value='<%# Eval("PKID") %>' />
                                <asp:DropDownList ID="ddlContractor" runat="server"></asp:DropDownList>
                            </ItemTemplate>
                            <ItemStyle Width="10%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="托运人" meta:resourcekey="TemplateFieldResource7">
                            <ItemTemplate>
                                <asp:Label ID="lblShipper" runat="server" Text='<%# Eval("Shipper") %>' 
                                    meta:resourcekey="lblShipperResource1"></asp:Label>
                                <asp:Label ID="lblHKShipper" runat="server" Text='<%# Eval("HKShipper") %>' 
                                    meta:resourcekey="lblShipperResource1"></asp:Label>
                                <asp:Label ID="lblENGShipper" runat="server" Text='<%# Eval("ENGShipper") %>' 
                                    meta:resourcekey="lblShipperResource1"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="10%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="SO_NO" meta:resourcekey="TemplateFieldResource8">
                            <ItemTemplate>
                                <asp:Label ID="lblSONO" runat="server" Text='<%# Eval("SONO") %>' 
                                    meta:resourcekey="lblSONOResource1"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="10%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="PN#" meta:resourcekey="TemplateFieldResource9">
                            <ItemTemplate>
                                <asp:Label ID="lblPNNO" runat="server" Text='<%# Eval("PNNO") %>' 
                                    meta:resourcekey="lblPNNOResource1"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="10%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="W Start" 
                            meta:resourcekey="TemplateFieldResource10">
                            <ItemTemplate>
                                <asp:Label ID="lblWinStart" runat="server" 
                                    Text='<%# Eval("WinStart", "{0:yyyy-MM-dd}") %>' 
                                    meta:resourcekey="lblWinStartResource1"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="5%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="W Closed" 
                            meta:resourcekey="TemplateFieldResource11">
                            <ItemTemplate>
                                <asp:Label ID="lblWinClose" runat="server" 
                                    Text='<%# Eval("WinClose", "{0:yyyy-MM-dd}") %>' 
                                    meta:resourcekey="lblWinCloseResource1"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="5%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="WHSE/TML" 
                            meta:resourcekey="TemplateFieldResource12">
                            <ItemTemplate>
                                <asp:Label ID="lblWhouse" runat="server" Text='<%# Eval("Whouse") %>' 
                                    meta:resourcekey="lblWhouseResource1"></asp:Label>
                                <asp:Label ID="lblHKWhouse" runat="server" Text='<%# Eval("HKWhouse") %>' 
                                    meta:resourcekey="lblWhouseResource1"></asp:Label>
                                <asp:Label ID="lblENGWhouse" runat="server" Text='<%# Eval("ENGWhouse") %>' 
                                    meta:resourcekey="lblWhouseResource1"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="10%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="JobDate" 
                            meta:resourcekey="TemplateFieldResource13">
                            <ItemTemplate>
                                <asp:Label ID="lblJobDate" runat="server" 
                                    Text='<%# Eval("JobDate", "{0:yyyy-MM-dd}") %>' 
                                    meta:resourcekey="lblJobDateResource1"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="10%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="DeliveryDate" 
                            meta:resourcekey="TemplateFieldResource14">
                            <ItemTemplate>
                                <asp:Label ID="lblDeliveryDate" runat="server" 
                                    Text='<%# Eval("DeliveryDate", "{0:yyyy-MM-dd}") %>' 
                                    meta:resourcekey="lblDeliveryDateResource1"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="10%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Movement" 
                            meta:resourcekey="TemplateFieldResource15">
                            <ItemTemplate>
                                <asp:Label ID="lblFCLLCL" runat="server" Text='<%# Eval("FCLLCL") %>' 
                                    meta:resourcekey="lblFCLLCLResource1"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="10%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="ITEM" meta:resourcekey="TemplateFieldResource16">
                            <ItemTemplate>
                                <asp:Label ID="lblItemNO" runat="server" Text='<%# Eval("ItemNO") %>' 
                                    meta:resourcekey="lblItemNOResource1"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="10%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="PCS" meta:resourcekey="TemplateFieldResource17">
                            <ItemTemplate>
                                <asp:Label ID="lblPCS" runat="server" Text='<%# Eval("PCS") %>' 
                                    meta:resourcekey="lblPCSResource1"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="5%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="CTN" meta:resourcekey="TemplateFieldResource18">
                            <ItemTemplate>
                                <asp:Label ID="lblCTN" runat="server" Text='<%# Eval("CTN") %>' 
                                    meta:resourcekey="lblCTNResource1"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="5%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="VOL" meta:resourcekey="TemplateFieldResource19">
                            <ItemTemplate>
                                <asp:Label ID="lblVOL" runat="server" Text='<%# Eval("VOL") %>' 
                                    meta:resourcekey="lblVOLResource1"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="5%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Weight" 
                            meta:resourcekey="TemplateFieldResource20">
                            <ItemTemplate>
                                <asp:Label ID="lblGrossWT" runat="server" Text='<%# Eval("GrossWT") %>' 
                                    meta:resourcekey="lblGrossWTResource1"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="5%" />
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle HorizontalAlign="Center" />
                    <RowStyle HorizontalAlign="Center" />
                </asp:GridView>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <table style="width: 100%">
        <tr>
            <td width="100%" align="center">
                <asp:Button ID="btnSave" runat="server" Text=" 保 存 " CssClass="btn" 
                    OnClick="btnSave_Click" meta:resourcekey="btnSaveResource1" />&nbsp;&nbsp;&nbsp;
                <a id="lblReturn" href="BookingList.aspx" class="btn" style="padding-top: 3px; padding-bottom: 3px;
                    color: #000000;" runat="server"><asp:Label ID="lblBack" runat="server" 
                    Text="返回" meta:resourcekey="lblBackResource1"></asp:Label></a>
            </td>
        </tr>
    </table>
</asp:Content>
